]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
gdmUtil: Fix auth prompt drawing over user list
authorRay Strode <rstrode@redhat.com>
Wed, 7 Jun 2017 19:00:11 +0000 (15:00 -0400)
committerRay Strode <rstrode@redhat.com>
Thu, 22 Jun 2017 18:31:19 +0000 (14:31 -0400)
If the user fails to enter their password then hits escape, we
jump back to the user list, then ask again for a password in a
garbled screen. this commit fixes that by guarding against the retry
if the fail counter is reset.

js/gdm/util.js

index 6876cbef94cbb62bfc3dd5e91425bc110206026d..03fd344ef3e415b34826fb8e66617c7979206544 100644 (file)
@@ -540,7 +540,8 @@ const ShellUserVerifier = new Lang.Class({
                 let signalId = this.connect('no-more-messages',
                                             Lang.bind(this, function() {
                                                 this.disconnect(signalId);
-                                                this._retry();
+                                                if (this._failCounter != 0)
+                                                    this._retry();
                                             }));
             }
         } else {